package com.tony.blog.model.request;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: IdRequest
 * @Auther: 皮蛋布丁
 * @Date: 2021/09/09/21:59
 * @Description: 只包含主键id的实体
 */
@Data
public class IdRequest implements Serializable {

    @NotNull(message = "id不能为空!")
    private Integer id;
}
